# This file is part of BlackArch Linux ( http://blackarch.org ).
# See COPYING for license details.

pkgname=python-aiohttp-xmlrpc
_pkgname=aiohttp-xmlrpc
pkgver=1.5.0
pkgrel=5
pkgdesc='aiohttp XML-RPC server handler and client.'
arch=('any')
url='https://pypi.org/project/aiohttp-xmlrpc/'
license=('MIT')
depends=('python' 'python-aiohttp' 'python-lxml')
makedepends=('python-setuptools')
options=(!emptydirs)
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('3ca274cb4a3a0d3f760495c7c5e93ee950c9aad062324d5f07c2c39d32c2bfa1e8a5e9f3fa40add65b9bf31e6ab704fcd288ee69a35376c019650092a5cc8faf')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --optimize=1
}

